import hibernate.util.HibernateUtil;

import org.hibernate.Hibernate;

import br.com.sisclinicamedica.negocio.basica.Guia;



public class Teste {
public static void main(String[] args) {
		Guia g = new Guia();
		g.setNumGuia(1234);
		g.setNumGuia(1);
		g.setDescricao("descricao");
			
		try(
		HibernateUtil.beginTransaction();
		HibernateUtil.getSession().save(g);
		HibernateUtil.commitTransaction();
		)catch (Exception e) {
			HibernateUtil.rollbackTransaction();
		}
	
}
	
	
}
